/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rfid;

import java.util.Date;
import org.llrp.ltk.generated.interfaces.EPCParameter;
import org.llrp.ltk.generated.parameters.AntennaID;
import org.llrp.ltk.generated.parameters.ChannelIndex;
import org.llrp.ltk.generated.parameters.FirstSeenTimestampUTC;
import org.llrp.ltk.generated.parameters.LastSeenTimestampUTC;
import org.llrp.ltk.generated.parameters.PeakRSSI;
import org.llrp.ltk.generated.parameters.TagReportData;
import org.llrp.ltk.generated.parameters.TagSeenCount;
import org.llrp.ltk.types.SignedShort;

/**
 *
 * @author xandru
 */
public class TagData {

    private EPCParameter EPCParameter;
    private long lastSeenTimestampUTC;
    private AntennaID antennaID;
    private ChannelIndex channelIndex;
    private long firstSeenTimestampUTC;
    private TagSeenCount tagSeenCount;
    private PeakRSSI peakRSSI;
    private SignedShort typeNum;

    public TagData(TagReportData r) {
        Date t = new Date();
        this.EPCParameter = r.getEPCParameter(); //identificador del tag
        this.lastSeenTimestampUTC = t.getTime();//Ultima vez que se leyo
        this.antennaID = r.getAntennaID();//identificador de la antena
        this.channelIndex = r.getChannelIndex();//indice del canal
        this.firstSeenTimestampUTC = t.getTime(); //Primera vez que se leyo
        this.tagSeenCount = r.getTagSeenCount(); //Numero de veces leido
        this.peakRSSI = r.getPeakRSSI(); //no lo se
        this.typeNum = r.getTypeNum();
    }

    public EPCParameter getEPCParameter() {
        return EPCParameter;
    }

    public AntennaID getAntennaID() {
        return antennaID;
    }

    public ChannelIndex getChannelIndex() {
        return channelIndex;
    }

    public long getFirstSeenTimestampUTC() {
        return firstSeenTimestampUTC;
    }

    public long getLastSeenTimestampUTC() {
        return lastSeenTimestampUTC;
    }

    public PeakRSSI getPeakRSSI() {
        return peakRSSI;
    }

    public TagSeenCount getTagSeenCount() {
        return tagSeenCount;
    }

    public SignedShort getTypeNum() {
        return typeNum;
    }

    public void setEPCParameter(EPCParameter EPCParameter) {
        this.EPCParameter = EPCParameter;
    }

    public void setAntennaID(AntennaID antennaID) {
        this.antennaID = antennaID;
    }

    public void setChannelIndex(ChannelIndex channelIndex) {
        this.channelIndex = channelIndex;
    }

    public void setFirstSeenTimestampUTC(long firstSeenTimestampUTC) {
        this.firstSeenTimestampUTC = firstSeenTimestampUTC;
    }

    public void setLastSeenTimestampUTC(long lastSeenTimestampUTC) {
        this.lastSeenTimestampUTC = lastSeenTimestampUTC;
    }

    public void setPeakRSSI(PeakRSSI peakRSSI) {
        this.peakRSSI = peakRSSI;
    }

    public void setTagSeenCount(TagSeenCount tagSeenCount) {
        this.tagSeenCount = tagSeenCount;
    }

    public void setTypeNum(SignedShort typeNum) {
        this.typeNum = typeNum;
    }



}
